<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>点击穿透</title>
    <script src="http://47.104.209.44/base/js/jquery-1.10.1.min.js"></script>
    <style>
        .mask{
            width:100%;
            height:50vh;
            background: rgba(0,0,0,0.5);
            color:firebrick;
            text-align: center;
            line-height: 50vh;
            font-size: 24px;
            position: absolute;
            top:0;
            left:0;
        }
        .box{
            width:100%;
            height:200px;
            background: yellowgreen;
            color:#fff;
        }
    </style>
</head>
<body>
    <div id="mask" class="mask">
        点击我关闭遮罩层-mask-touch
    </div>
    <div class="box">点击我改变背景颜色-click</div>

    <script>
        $("#mask").on("touchstart",function(e){
            $("#mask").hide()
        })
        $(".box").on('click',function(){
            $(this).css("background","deeppink")
        })
    </script>
</body>
</html>